<!DOCTYPE html>
<html>
<head>
    <title>{age}</title>
    <style>
        body, html {
            margin: 0;
            padding: 0;
            height: 100%;
            overflow: hidden;
        }

        .slideshow {
            position: relative;
            height: 100%;
            width: 100%;
        }

        .slide {
            position: absolute;
            width: 100%;
            height: 100%;
            opacity: 0;
            transition: opacity 1s ease-in-out;
        }

        .slide.active {
            opacity: 1;
        }

        .slide img {
            width: 100%;
            height: auto;
        }
    </style>
</head>
<body>
<div class="slideshow">
    <div class="slide active">
        <h1>{{ age }} 岁啦~</h1>
        <h1>{{ describe }}</h1>
        <img src="{{ image }}" alt="Image 1">
    </div>
    <div class="slide">
        <h1>{{ age }} 岁啦~</h1>
        <h1>{{ describe }}</h1>
        <img src="image2.jpg" alt="Image 2">
    </div>
    <div class="slide">
        <h1>{{ age }} 岁啦~</h1>
        <h1>{{ describe }}</h1>
        <img src="image3.jpg" alt="Image 3">
    </div>
    <!-- 添加更多图片作为轮播图 -->
</div>

<script>
    var slides = document.querySelectorAll('.slide');
    var currentIndex = 0;

    function nextSlide() {
        slides[currentIndex].classList.remove('active');
        currentIndex = (currentIndex + 1) % slides.length;
        slides[currentIndex].classList.add('active');
    }

    setInterval(nextSlide, 3000); // 每3秒切换一次轮播图
</script>
</body>
</html>